import request from '@/utils/request'

// 查询street_community列表
export function listStreetCommunity(query) {
  return request({
    url: '/system/streetCommunity/list',
    method: 'get',
    params: query
  })
}

// 查询street_community详细
export function getStreetCommunity(id) {
  return request({
    url: '/system/streetCommunity/' + id,
    method: 'get'
  })
}

// 新增street_community
export function addStreetCommunity(data) {
  return request({
    url: '/system/streetCommunity',
    method: 'post',
    data: data
  })
}

// 修改street_community
export function updateStreetCommunity(data) {
  return request({
    url: '/system/streetCommunity',
    method: 'put',
    data: data
  })
}

// 删除street_community
export function delStreetCommunity(id) {
  return request({
    url: '/system/streetCommunity/' + id,
    method: 'delete'
  })
}
